package com.xuyiwei.mayi;

import java.util.Base64;

/**
 * Created by xuyiwei on 2019/4/30.
 */
public class Base64Jiami {
    public static void main(String[] args) {
        String mima = "1111";
        byte[] encode =  Base64.getEncoder().encode(mima.getBytes());

        System.out.println(new String( encode ));


        System.out.println(new String(Base64.getDecoder().decode(encode)));
    }
}
